
function searchOpenBig() {
    let text = $('#themability_newsletter_usr_email').val()
    if (text) {
        var path = window.location.pathname;
        var searchString = "search";
        if (path.includes(searchString)) {
            getSearchData(text, 1);
            $("#slide-fade").hide();
        } else {
            window.open('/search?keyword='+text);
        }
    }
}

function keyupSearch(event) {
    if (event.keyCode === 13) {
        let text = $('#themability_newsletter_usr_email').val()
        if (text) {
            var path = window.location.pathname;
            var searchString = "search";
            if (path.includes(searchString)) {
                getSearchData(text, 1);
                $("#slide-fade").hide();
            } else {
                window.open('/search?keyword='+text);
            }
        }
    }
}
